﻿using FluentValidation;
using Huirui.Cavan.Domain.MainBoundedContext.Resources;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Huirui.Cavan.Domain.MainBoundedContext.SystemModule
{
    public  class JobValidator: AbstractValidator<Job>
    {
        public JobValidator()
        {
            RuleFor(d => d.Id).GreaterThan(0).WithMessage(Messages.Validate_IdNotEmpty);
        }
    }
}
